package com.htn.common.core.base;

import com.htn.common.core.constant.CommonConstants;
import lombok.Getter;
import lombok.Setter;


/**
 * @author hongfei
 */
@Setter
@Getter
public class BaseResponse {
	private CommonConstants.ResponseStatus status = CommonConstants.ResponseStatus.SUCCESS;
	private String message = status.getMessage();
	private Integer code = status.getCode();


	public BaseResponse(CommonConstants.ResponseStatus status) {
		this.status = status;
		this.code = status.getCode();
		this.message = status.getMessage();
	}


	public BaseResponse() {
	}

}
